<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);

class reminds_model extends model {

    public function __construct() {
        $this->db_config = pc_base::load_config('database');
        $this->db_setting = 'default';
        $this->table_name = 'reminds';
        parent::__construct();
    }

    public function type2name($a) {
        $arr = [
            0 => '系统消息',
            1 => '预约状态',
            2 => '课程推送',
            3 => '定时提醒',
            4 => '订单提醒',
        ];

        return $arr[$a];
    }

}